package com.ruoyi.jiuzai.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.jiuzai.mapper.WuzichukuMapper;
import com.ruoyi.jiuzai.domain.Wuzichuku;
import com.ruoyi.jiuzai.service.IWuzichukuService;

/**
 * 物资出库Service业务层处理
 * 
 * @author ruoyi
 * @date 2025-06-21
 */
@Service
public class WuzichukuServiceImpl implements IWuzichukuService 
{
    @Autowired
    private WuzichukuMapper wuzichukuMapper;

    /**
     * 查询物资出库
     * 
     * @param cId 物资出库主键
     * @return 物资出库
     */
    @Override
    public Wuzichuku selectWuzichukuByCId(Long cId)
    {
        return wuzichukuMapper.selectWuzichukuByCId(cId);
    }

    /**
     * 查询物资出库列表
     * 
     * @param wuzichuku 物资出库
     * @return 物资出库
     */
    @Override
    public List<Wuzichuku> selectWuzichukuList(Wuzichuku wuzichuku)
    {
        return wuzichukuMapper.selectWuzichukuList(wuzichuku);
    }

    /**
     * 新增物资出库
     * 
     * @param wuzichuku 物资出库
     * @return 结果
     */
    @Override
    public int insertWuzichuku(Wuzichuku wuzichuku)
    {
        return wuzichukuMapper.insertWuzichuku(wuzichuku);
    }

    /**
     * 修改物资出库
     * 
     * @param wuzichuku 物资出库
     * @return 结果
     */
    @Override
    public int updateWuzichuku(Wuzichuku wuzichuku)
    {
        return wuzichukuMapper.updateWuzichuku(wuzichuku);
    }

    /**
     * 批量删除物资出库
     * 
     * @param cIds 需要删除的物资出库主键
     * @return 结果
     */
    @Override
    public int deleteWuzichukuByCIds(Long[] cIds)
    {
        return wuzichukuMapper.deleteWuzichukuByCIds(cIds);
    }

    /**
     * 删除物资出库信息
     * 
     * @param cId 物资出库主键
     * @return 结果
     */
    @Override
    public int deleteWuzichukuByCId(Long cId)
    {
        return wuzichukuMapper.deleteWuzichukuByCId(cId);
    }
}
